<?php $this->_extends('_layouts/admin_layout'); ?>

<?php $this->_block('title'); ?> - 欢迎<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<?php include dirname(dirname(dirname(dirname(dirname(__FILE__))))).'/ckeditor/ckeditor_php5.php'; ?>
	<form action="<?php echo url('admin/edit'); ?>" method="POST">
            
            <table border="0">
                <tr><td> title:</td><td><input type="text" name="title" size="60" value="<?php echo $article->title; ?>"/></td></tr>
                <tr><td>Keywords:</td><td><input type="text" name="keywords" size="60" value="<?php echo $article->keywords; ?>"/></td></tr>
                <tr><td>description:</td><td><textarea name="description" cols="55" rows="3"><?php echo $article->description; ?></textarea></td></tr>
                <tr><td> body:</td><td>
                    <?php 
                        $ckeditor = new CKEditor();
                        $ckeditor->textareaAttributes = array('row'=>10 , 'col' => 60 );
                        $ckeditor->editor("body", $article->body);
                    ?></td>
                </tr>
                <tr><input type="hidden" name="id" value="<?php echo $article->id; ?>"> <td> <input type="submit" value="POST" /></td><td><input type="reset" value="重写"></td></tr>
            </table>                
        </form>

<?php $this->_endblock('contents'); ?>